<?php

//echo 'Halaman list object AR untuk POI';
//echo br(2);

if (isset($message)) {
    echo $message;
    br(2);
}

if (is_bool($object_list)) {
    echo 'POI ini belum memiliki objek AR.';
    echo br(1);
} else {
    echo 'Daftar objek AR yang POI ini miliki :';
    echo br(1);
    
    $i = 0;
    foreach ($object_list as $object) {
        $i++;
        echo $i.'   ';
        echo $object->path;
        echo '  ';
        echo anchor('object/edit/' . $object->id, 'Ubah');
        echo '  ';
        echo anchor('object/delete/' . $object->id, 'Hapus');
        echo br(1);
    }
}
echo br(2);
echo anchor('object/add/'.$poi_id, 'Tambah Objek AR');
echo br(2);
echo anchor('/home', 'Home');
echo br(1);
echo anchor('/login/logout', 'Logout');
?>